package com.tsw.project.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tsw.project.mapper.UserMapper;
import com.tsw.project.eneity.User;
import com.tsw.project.service.UserService;

@Service
public class UserServiceImpl implements UserService{


    @Autowired
    private UserMapper userMapper;


    @Override
    public int add(User user) {
        userMapper.insert(user);
        int id = user.getUid();
        return id;
    }
}
